from appium.webdriver.common.appiumby import AppiumBy

from app_practice.app_wework_po.frame.base_page import BasePage


class AddMemberPage(BasePage):
    _TEXT_ADD_MENUAL = AppiumBy.XPATH, "//*[@text='手动输入添加']"
    """添加成员页"""
    def click_addmember_menual(self):
        """点击手动输入添加"""
        # 点击【手动输入添加】
        self.find_and_click(self._TEXT_ADD_MENUAL)

        from app_practice.app_wework_po.page.edit_member_page import EditMemberPage
        return EditMemberPage(self.driver)

    def get_tips(self):
        tips = self.get_toast_text()
        return tips